<template>
	<view class="my">
		<!-- 一键登录 -->
		<my-login  v-if="!token"></my-login>
		<!-- 用户信息页 -->
		<my-userpage v-else></my-userpage>
	</view>
</template>

<script>
	import { mapState } from 'vuex'
	import badgeMixin from '../../mixins/tabbarbage.js'
	export default {
		data() {
			return {
		
			};
		},
		mixins:[badgeMixin],
		computed:{
			...mapState('m_user',['token'])
		}
	}
</script>

<style lang="less">
	
</style>
